package form1;

import java.util.Date;

import org.apache.wicket.extensions.yui.calendar.DatePicker;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.Model;


public class editForm1 extends WebPage {
	private Model model;
	private Model dateModel;
	private Model orNoModel;
	private Model paymentModel;
	private Model curNameModel;
	
	public editForm1() {
		Form form = new Form("EditForm1"){
			public void onSubmit(){
			Date date = (Date) dateModel.getObject();
			String ORNo = orNoModel.getObject().toString();
			String paymentFor = paymentModel.getObject().toString();
			String studName = curNameModel.getObject().toString();
		}
		};
		
		dateModel = new Model();
		TextField quoteDate =
			new TextField("quoteDate", dateModel, Date.class);
		quoteDate.setRequired(true);
		quoteDate.add(new DatePicker());
		form.add(quoteDate);
	
		final Model orNoModel = new Model("");
		TextField  curORNo= new TextField("ORNo", orNoModel);
		form.add(curORNo);
		
		final Model paymentModel = new Model("");
		TextField  payment1= new TextField("paymentFor", paymentModel);
		form.add(payment1);
		
		final Model curNameModel = new Model("");
		TextField  Name= new TextField("studName", curNameModel);
		form.add(Name);
		
}	
}
	

